<font class="regular_subject">Register sell</font><br/>

<g:formRemote name="registerForm" url="[action:'save']" onSuccess="${remoteFunction(controller:'investments',action:'allpast',update:'main')};">
  <table>
    <tr>
      <td>
    <g:select
      onchange="${remoteFunction(action:'details',update:'details', params:'\'buy=\'+this.value')}"
      name="buy"
      noSelection="${['null':'Select an investment']}"
      from="${buys}"
      optionKey="id" />
    </td>
    </tr>
    <tr>
      <td>
        <div id="details"></div>
      </td>
    </tr>
  </table>
</g:formRemote>
